#ifndef __ADU_SPLASH__
#define __ADU_SPLASH__

#include "cocos2d.h"
#include "ADUConfig.h"
#include "ADUConstant.h"
#include "ADUGamePlayScene.h"
#include "extensions/cocos-ext.h"
#include "ui/CocosGUI.h"
USING_NS_CC;
USING_NS_CC_EXT;
using namespace ui;
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
using namespace cocos2d::experimental::ui;
#endif

class SplashLayer : public cocos2d::Layer
{
public:
    static cocos2d::Scene* createScene();
    virtual bool init();  
    void update(float dt);
    CREATE_FUNC(SplashLayer);
    void createIntro();
    void nextScene();
private:
	Sprite* 	mBackground;
	float		mTimer;
	bool 		mBeginIntro;
};

#endif
